#include "settings.h"
#include <QSettings>
#include <QDebug>

Settings::Settings(QWidget* parent) : QDialog(parent){
	ui.setupUi(this);
	QSettings settings;
	ui.comboBox->setCurrentIndex(ui.comboBox->findText(settings.value("stream", "128k MP3").toString()));
}

void Settings::accept() {
	QSettings settings;
	settings.setValue("stream", ui.comboBox->currentText());
	QDialog::accept();
}
